﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TrexSpace.Business
{
    public class CategoryManager
    {
        
        public void AddCategory(string parentCategoryID , string newCategoryName)
        {
            Repository ore = new Repository();
            ore.AddCategory(parentCategoryID, newCategoryName);
        }

        public List<Category> GetAllCategories()
        {
            Repository ore = new Repository();
            return  ore.AllCategories().ToList();
        }

       
    }
}
